package com.Gwo.org.service;

import com.Gwo.basic.utils.PageList;
import com.Gwo.org.domain.Employee;
import com.Gwo.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    // 根据id查询
    Employee findById(Long id);

    // 查询全部
    List<Employee> findAll();

    // 添加
    void add(Employee employee);

    // 删除
    void delete(Long id);


    // 修改
    void update(Employee employee);

    // 分页查询
    PageList<Employee> queryByPage(EmployeeQuery query);

    //批量删除
    void batchDelete(List<Long> ids);
}
